Skip to content

Remove -vv by default for pytest#595

Open
llucax wants to merge 5 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-594
Open

Remove -vv by default for pytest#595
llucax wants to merge 5 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-594

Conversation

@llucax

@llucax llucax commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #594.

llucax added 5 commits June 2, 2026 10:29
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
For projects with many tests, the `-vv` default produces a wall of
output that makes it hard to see the results from other, previous,
sessions.  Drop the default from the generated `pyproject.toml` so
each project can opt in if it wants.

Regenerated the golden fixtures for all repository types and both
license variants.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Mirror the template change that drops `addopts = "-vv"` from
`[tool.pytest.ini_options]` so existing repositories pick it up too.

The step removes the `addopts = "-vv"` line when it matches the
template default verbatim, leaves customized `addopts` values alone
(with a manual step asking the maintainer to drop `-vv` if they want),
and is a no-op when the line is already gone or the
`[tool.pytest.ini_options]` section is missing.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Apply the matching migration step to this repository so its own
`pyproject.toml` no longer ships `addopts = "-vv"` under
`[tool.pytest.ini_options]`.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax requested a review from a team as a code owner June 25, 2026 14:58
@llucax llucax requested review from florian-wagner-frequenz and removed request for a team June 25, 2026 14:58
@llucax llucax enabled auto-merge June 25, 2026 14:58
@github-actions github-actions Bot added the part:template Affects the cookiecutter template files label Jun 25, 2026
@llucax llucax self-assigned this Jun 25, 2026
@llucax llucax added this to the v0.19.0 milestone Jun 25, 2026
Comment thread cookiecutter/migrate.py
return

pytest_section = pytest_section_match.group(0)
addopts_match = re.search(r"^addopts\s*=.*$", pytest_section, flags=re.MULTILINE)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to import re previously removed it in the reset commit

@daniel-zullo-frequenz daniel-zullo-frequenz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The checks fail because of a missing import, LGTM otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:template Affects the cookiecutter template files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the default -vv for pytest

2 participants